-- GENERATED SPELL FOR [Redstone Crystalhide] --


function spell0_5991(pUnit, Event) --@Crystal Flash,n/a--
pUnit:FullCastSpellOnTarget(5106,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5991', 17000, 1)
end

function Sorts_5991(pUnit, Event)
local choix_sorts_5991 = math.random(0, 0)
if choix_sorts_5991 == 0 then
pUnit:RegisterEvent('spell0_5991', 1, 1)
end
end

function mob5991_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5991', math.random(1500, 3000), 1)
end

function mob5991_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5991_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5991_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5991, 1, 'mob5991_Action')
RegisterUnitEvent(5991, 2, 'mob5991_Leave')
RegisterUnitEvent(5991, 3, 'mob5991_Kill')
RegisterUnitEvent(5991, 4, 'mob5991_Die')
